package com.stylefeng.guns.rest.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 用户推荐关系表
 * </p>
 *
 * @author ruiyifeng123
 * @since 2018-06-12
 */
@TableName("wz_user_recommend")
public class WzUserRecommend extends Model<WzUserRecommend> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 申请人用户编号
     */
    @TableField("applicant_user_code")
    private Long applicantUserCode;
    /**
     * 昵称
     */
    @TableField("nick_name")
    private String nickName;
    /**
     * 头像
     */
    @TableField("avatar_url")
    private String avatarUrl;
    /**
     * 接收人用户编号
     */
    @TableField("accept_user_code")
    private Long acceptUserCode;
    /**
     * 邀请收益
     */
    @TableField("invitation_reward")
    private Integer invitationReward;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getApplicantUserCode() {
        return applicantUserCode;
    }

    public void setApplicantUserCode(Long applicantUserCode) {
        this.applicantUserCode = applicantUserCode;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    public Long getAcceptUserCode() {
        return acceptUserCode;
    }

    public void setAcceptUserCode(Long acceptUserCode) {
        this.acceptUserCode = acceptUserCode;
    }

    public Integer getInvitationReward() {
        return invitationReward;
    }

    public void setInvitationReward(Integer invitationReward) {
        this.invitationReward = invitationReward;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "WzUserRecommend{" +
        "id=" + id +
        ", applicantUserCode=" + applicantUserCode +
        ", nickName=" + nickName +
        ", avatarUrl=" + avatarUrl +
        ", acceptUserCode=" + acceptUserCode +
        ", invitationReward=" + invitationReward +
        ", createTime=" + createTime +
        "}";
    }
}
